package com.mystring.service.impl;

import com.mystring.service.ProductService;

import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;

/**
 * ClassName: ProductServiceImplTest02
 * Package: com.mystring.service.impl
 * Description:
 *
 * @Author 刘英杰
 * @Create 2025/1/31 21:30
 * @Version 1.0
 */

/**
 * junit5+spring5
 */
@SpringJUnitConfig(locations = "classpath:applicationContext.xml")
public class ProductServiceImplTest02 {
    @Autowired
    private ProductService productService;

    @Test//import org.junit.jupiter.api.Test;
    public void testFindAll() {
        productService.findAll().forEach(System.out::println);
    }
}
